<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <!--<div class="layui-form-item">
            <label class="layui-form-label">代金券类型(1:通用券,2:商品券,3:商家券)</label>
            <div class="layui-input-block">
                <input type="text" name="type" class="layui-input" lay-verify="required" placeholder="请输入代金券类型(1:通用券,2:商品券,3:商家券)" value="{$row.type|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">创造代金券的管理员（默认只能主管理员创建）</label>
            <div class="layui-input-block">
                <input type="text" name="from_admin" class="layui-input" lay-verify="required" placeholder="请输入创造代金券的管理员（默认只能主管理员创建）" value="{$row.from_admin|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关联商品类型（可多选，空值为不限制）</label>
            <div class="layui-input-block">
                <input type="text" name="related_category" class="layui-input"  placeholder="请输入关联商品类型（可多选，空值为不限制）" value="{$row.related_category|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关联商户(可多选,空值为不限制)</label>
            <div class="layui-input-block">
                <input type="text" name="related_merchant" class="layui-input"  placeholder="请输入关联商户(可多选,空值为不限制)" value="{$row.related_merchant|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">该种代金券数量</label>
            <div class="layui-input-block">
                <input type="text" name="num" class="layui-input"  placeholder="请输入该种代金券数量" value="{$row.num|default=''}">
            </div>
        </div>-->

        <div class="layui-form-item">
            <label class="layui-form-label">代金券数量</label>
            <div class="layui-input-block">
                <input type="text" name="num" class="layui-input"  placeholder="请输入代金券数量" value="{$row.num|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">使用说明</label>
            <div class="tips-box"></div>
            <div class="layui-input-block">
                <i class="layui-btn layui-btn-success tips-add">+</i>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">注意事项</label>
            <div class="attention-box"></div>
            <div class="layui-input-block">
                <i class="layui-btn layui-btn-success attention-add">+</i>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<style>
    .layui-input{
        width: 80%;
        display: inline;
        margin-bottom: 10px;
    }
    .layui-input-block i{
        margin-top: -2px;
    }
</style>
<script>
    var tips_arr = {$row.tips_arr|raw};
    var attention_arr = {$row.attention_arr|raw};
</script>